import request from '@/utils/request'

export function getProjectList(data) {
  return request({
    url: '/tableProject/list',
    method: 'post',
    data
  })
}

export function getProjectListParent(data) {
  return request({
    url: '/tableProject/listParent',
    method: 'post',
    data
  })
}



export function createProject(data) {
  return request({
    url: '/tableProject/create',
    method: 'post',
    data
  })

}


export function updateProject(data) {
  return request({
    url: '/tableProject/update',
    method: 'put',
    data
  })
}


//删除
export function deleteProjectInfo(data) {
  return request({
    url: '/tableProject/delete?idlist='+data,
    method: 'get',

  })
}
